import redis


class RedisObject:
    def __init__(self, ip='127.0.0.1', port=6379, db=0):
        self.redis_ip = ip
        self.redis_port = port
        self.redis_db = db
        self.redis = redis.StrictRedis(host=ip, port=port, db=db)

    def redis_get(self, key):
        return self.redis.get(key)
